﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Box.Entities;
using Box.Repository;
using Microsoft.Practices.Unity;

namespace Box.BL
{
  public  class BancoBL:IBancoBL
    {
      [Dependency]
      public IBancoRepository bancoRepository { get; set; }
        public List<Banco> GetAllFromBancos()
        {
           return bancoRepository.GetAllFromBancos();
        }

        public List<Banco> GetFromBancosByCriterio(string criterio)
        {
            return bancoRepository.GetFromBancosByCriterio(criterio);
        }

        public Banco GetFromBancosById(int id)
        {
            return bancoRepository.GetFromBancosById(id);
        }

        public void AddBanco(Banco Banco)
        {
            bancoRepository.AddBanco(Banco);
        }

        public void UpdateBanco(Banco Banco)
        {
            bancoRepository.UpdateBanco(Banco);
        }

        public void RemoveBanco(int id)
        {
            bancoRepository.RemoveBanco(id);
        }

        public bool ExisteBanco(int id)
        {
            throw new NotImplementedException();
        }
    }
}
